package cn.jtool.dig.common.netty;

import cn.jtool.dig.common.model.Packet;
import io.netty.channel.ChannelHandlerContext;

public interface ProtocolProcess {

    int protocolId();

    /**
     * 处理协议
     * @param ctx
     * @param packet
     * @return
     */
    Packet process(ChannelHandlerContext ctx, Packet packet);

}
